<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: 波哥
  Date: 2018/1/26
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()%>/"/>
</head>
<body>
    <form:form  method="post"  action="house/add" modelAttribute="house" enctype="multipart/form-data">
        <input type="text" placeholder="住房名称" name="houseName"><br>
        <input type="file" placeholder="图片" name="file"><br>
        <input type="text" placeholder="大小" name="huseSize"><br>
        <input type="text" placeholder="户型" name="houseLayout"><br>
        <input type="text" placeholder="楼层" name="houseFloor"><br>
        <input type="text" placeholder="户主" name="houseMaster"><br>
        <input type="text" placeholder="位置" name="houseAddress"><br>
        <input type="text" placeholder="小区" name="houseEstate"><br>
        <input type="text" placeholder="租金" name="housePrice"><br>
        <form:select path="houseType.typeId" items="${typeList}" itemLabel="typeJname" itemValue="typeId"/><br>
        <input type="submit">
    </form:form>
</body>
</html>
